<?php
require_once SCRIPT_DIR . '/fckeditor/fckeditor_php5.php';
class Zendvn_View_Helper_FckEditor extends Zend_View_Helper_Abstract{
	
	public function fckEditor($name,$value = '', $width = '100%',$height = '300',$toolbarSet = 'Default'){
		$sBasePath = URL_SCRIPT . '/fckeditor/';
		$oFCKeditor = new FCKeditor($name) ;
		$oFCKeditor->BasePath	= $sBasePath ;
		$oFCKeditor->Value		= $value;
		$oFCKeditor->Width 		= $width;
		$oFCKeditor->Height		= $height;
		$oFCKeditor->ToolbarSet = $toolbarSet;
		return $oFCKeditor->Create() ;
	}
}